//
//  LHManager.h
//  LazyHome
//
//  Created by yh on 2018/5/8.
//  Copyright © 2018年 yh. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "LHCmd.h"

@interface LHManager : NSObject

+ (instancetype)shareManager;



/**
 登录服务器
 */
- (void)login;


/**
 请求向服务器查询所有设备
 */
- (void)queryDevices;



/**
 设备基本信息查询

 @param deviceId deviceId description
 */
- (void)getDeviceBaseInfoWithDeviceId:(NSString *)deviceId;


/**
 获取设备状态查询

 @param devId devId description
 */
- (void)getDeviceStateInfoWithDeviceId:(NSString *)devId;


/**
 更改8路继电器的状态 P0口

 @param deviceId 设备Id
 @param status 继电器状态 二进制数据控制
 */
- (void)change8RelayWithDeviceId:(NSString *)deviceId status:(unsigned char)status;


- (void)changeDeviceStatusWithDeviceId:(NSString *)deviceId deviceType:(DEVICETYPE)deviceType status:(NSDictionary *)status;


@end
